golang map has key

161

golang map has key -

if val, ok := dict["foo"]; ok {
    //do something here
}

Comments

Submit
0 Comments